package com.lnu_devteam.zongce.utils;

import org.springframework.util.DigestUtils;

/**
 * @author xbaozi
 * @version 1.0
 * @classname Md5Utils
 * @date 2023-03-23  19:26
 * @description md5加密工具类
 */
public class Md5Utils {
    private static final String SALT = "_$dev^v^team$_";

    public static String getMd5String(String target) {
        return DigestUtils.md5DigestAsHex(
                (target + SALT).getBytes()
        );
    }
}
